package com.ac.scum.log.web.model.ftp.mapper;

import com.ac.scum.log.bean.ServerFTPLogKill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;

@Mapper
public interface ServerFTPLogKillMapper extends BaseMapper<ServerFTPLogKill> {

    @Select("select count(*) from server_ftp_file_log_kill where server_id = #{serverId} and server_time>#{startTime} and server_time < #{endTime} and type = #{type}")
    Integer countKillCountByDateAndType(@Param("serverId") Long serverId, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime, @Param("type") Integer type);
}
